﻿#ifndef __SS_SPHER_H__
#define __SS_SPHER_H__
#include "ssVector.h"

namespace StarSeeker
{

class ssSpher
{
public:
	ssSpher(void);
	ssSpher(ssfloat x, ssfloat y, ssfloat z, ssfloat radius);

	void Set(ssfloat x, ssfloat y, ssfloat z, ssfloat radius);
	//清零
	void Zero();
	//点是否在球内
	bool PointIsInside(ssfloat x, ssfloat y, ssfloat z);
	bool PointIsInside(ssVector3& p);

	ssVector3	m_center;
	ssfloat		m_radius;
};

}
#endif
